import request from '@/utils/request'

// 查询签约信息分页
export function getBsCustomerContractPage(query) {
  return request({
    url: '/bsCustomerContract/getPage',
    method: 'get',
    params: query
  })
}

// 查询签约信息列表
export function getBsCustomerContractList(query) {
  return request({
    url: '/bsCustomerContract/getList',
    method: 'get',
    params: query
  })
}

// 通过主键查询签约信息详细
export function getBsCustomerContractById(query) {
  return request({
    url: '/bsCustomerContract/getById',
    method: 'get',
    params: query
  })
}

// 新增或修改签约信息信息
export function addOrUpdateBsCustomerContract(data) {
  return request({
    url: '/bsCustomerContract/saveOrUpdate',
    method: 'post',
    data: data
  })
}

// 删除签约信息记录
export function delBsCustomerContract(ids) {
  return request({
    url: '/bsCustomerContract/deleteByIds/'+ids,
    method: 'delete',
  })
}

// 导出签约信息数据
export function exportBsCustomerContract(query) {
  return request({
    url: '/bsCustomerContract/export',
    method: 'get',
    params: query
  })
}